!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <span style="border: 1px solid red;width: 300px;height: 300px;display: inline-block;"></span>
    <button stype="button" onclick="Fnbutton()">点我!</button>
    <p></p >
    <button type="button" onclick="lightbulb()">灯泡开关</button>
    <image id="myimage" src="https://pic.52112.com/180516/JPG180516_395/BxHFZolOQ0_small.jpg" alt="" style="width: 300px;height: 300px;">  
    <script>

        let   a = '987321'
        console.log(a.match('21'))
        document.write("<p style='border: 1px solid rid;width: 300px;'></p >");
        function Fnbutton (){
             alert('欢迎进入')
             }
            function lightbulb(){
                let element = document.getElementById('myimage')
                console.log(element)
                console.log(element.src.match('https://pic.52112.com/180516/JPG180516_395/BxHFZolOQ0_small.jpg'))
                if(element.src.match('https://pic.52112.com/180516/JPG180516_395/BxHFZolOQ0_small.jpg')){
                    element.src = 'https://tse2-mm.cn.bing.net/th/id/OIP-C.lWp1DVtj_3gGijkftJ_FewHaHa?rs=1&pid=ImgDetMain'
                }else{
                    element.src = 'https://pic.52112.com/180516/JPG180516_395/BxHFZolOQ0_small.jpg' 
                }
            }
            </script>
<style>
    .search-container{
        display: flex;
        justify-self: center;
        margin-top: 50px;
    }
    .search-input{
        padding: 10px;
        border: 2px; solid: #ccc;
        border-radius: 4px;
        width: 300px;
        font-size: 16px;
    }
    .search-button{
        padding: 10px 20px;
        background-color: #007BBF;
        color: white;
        border: none;
        border-radius: 4px;
        margin-left: 10px;
        cursor: pointer;
    }
    .search-button:hover{
        background-color: #0056b3;
    }
</style>
<title>简单搜索边框</title>
</head>
<body>
<div class="search-container">
    <input type="text" class="search-input" placeholder="输入搜索内容">
    <button class="search-button">搜索</button>
</div>
</body>
<form>
<input type="text" namr="search" placeholder="请输入搜索内容">
</form>
</body>
</html>